package cn.xinfei.xdecision.common.service.datax.datainterface.v2;

import cn.xinfei.xdecision.common.model.datax.datainterface.v2.VariableInterface;
import cn.xinfei.xdecision.common.model.datax.datainterface.vo.InterfaceVo;
import cn.xinfei.xdecision.common.model.datax.datamanage.v2.vo.VariableInterfaceVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface VariableInterfaceService extends IService<VariableInterface> {

    List<Long> selectDatasourceIdsByVarcodes(Collection<String> varCodes);


    List<String> selectVarCodesByProviderAndOrganId(String provider,Long organId);

    List<String> selectApiByDatasourceId(Integer datasourceId);

    Map<String,List<String>> selectAllApiAndVarCodes();

    List<VariableInterface> selectAllVarInterfaceRel();

    void batchInsertOrUpdateVariables(List<VariableInterface> variableInterfaces);

    void save(VariableInterfaceVO variableInterface);

    void update(VariableInterfaceVO variableInterface);

}
